FINS SilverLake Customers System API - Implementation Template

(0 reviews)

Data mappings

This document provides information generated from the DataWeave scripts included in the project, such as function definitions, variable definitions, and data mapping tables.

ModuleDescription
create-customers-soap-requestCreate Customer in SilverLake request mapping
customers-search-response-mappingLookup Customer from SilverLake response mapping
get-contactpoints-responseRetrieve Customer ContactPoints from SilverLake response mapping
get-customers-responseRetrieve Customer from SilverLake response mapping
get-customers-soap-requestSOAP Request mapping for retrieving a Customer from SilverLake
search-customer-by-emailaddress-soap-requestSOAP Request mapping for a searching a Customer by EmailAddress from SilverLake The CustSrch Operation of CustomerService is used to look up a Customer
search-customer-by-individualname-soap-requestSOAP Request mapping for a searching a Customer by Individual from SilverLake The CustSrch Operation of CustomerService is used to look up a Customer
update-customer-soap-requestUpdate Customer in SilverLake request mapping
upsert-contactpoints-soap-requestCreate Customer ContactPoints in SilverLake request mapping
SilverLakeTools

create-customers-soap-request

Create Customer in SilverLake request mapping

Source: ./src/main/resources/dwl/create-customers-soap-request.dwl

Mapping Tables

The CustAdd Operation of the CustomerService is used to create the Customer in SilverLake Maps CIM Customer to the request xml that is used to consume the CustAdd Operation of the CustomerService The SOAP request includes the MsgRqHdr.jXchangeHdr and all the mappings in the header are specific to the jExchange Instance The customerNumber is mandatory and needs to be uinque to create a customer in Silverlake The Address is also mandatory to create a customer

CustAdd RequestCIMDescription
TaxDetail.TaxDetail.TINInfo.TaxIdcustomerNumberThe Customer Tax Identification Number in SilverLake. This needs to be unique.
CustDetail.PersonName.FirstNameparty.firstNameThe Firstname of the Customer.
CustDetail.PersonName.LastNameparty.lastNameThe Lastname of the Customer.
CustDetail.BirthDtparty.birthDateThe Customer birth date.
CustDetail.Addr.StreetAddr1addressLine1The Addressine1 of the Customer Address.
CustDetail.Addr.CitycityNameThe City name of the Customer Address.
CustDetail.Addr.PostalCodepostalCodeTextThe Post Code of the Customer Address.
CustDetail.Addr.StateCodestateProvinceNameThe State Province of the Customer Address.
CustDetail.Addr.CntrycountryNameThe Country Name of the Customer Address.

(back to top)

customers-search-response-mapping

Lookup Customer from SilverLake response mapping

Source: ./src/main/resources/dwl/customers-search-response-mapping.dwl

Mapping Tables

The CustSrch Operation of the CustomerService is used to search a Customer in SilverLake Maps the CustSrch response to CIM Customer format

CIMCustSrchResponse.CustSrchRecArray.CustSrchRecDescription
idCustIdThe Customer Identifier in SilverLake
partyRoleTypeCustomerSet as "Customer".
customerNumberx_TaxDetail.TaxDetail.TINInfo.TaxIdThe Customer Tax Identification Number in SilverLake.
customerStatus"ACTIVE"The Status of the Customer in SilverLake. Set as "Active".
party.idnullSet as null.
party.salutationCustDetail.PersonName.x_PersonName.SalNameThe Salutation of the Customer.
party.personNameFirstName ++ LastNameFullname of the Customer (concatenate FistName + LastName).
party.firstNameCustDetail.PersonName.FirstNameThe Firstname of the Customer.
party.lastNameCustDetail.PersonName.LastNameThe Lastname of the Customer.
party.birthDateCustDetail.BirthDtThe Customer birth date.
party.genderCustDetail.GenderThe gender of the Customer.
party.partyType"Individual"The party type set as "Individual".
contactPointTypeContactPointAddressThe contactpoint type set as "ContactPointAddress".
idnullThe ContactPoint type Id - Set as null.
activeFromDatenow()The date from which the ContactPoint Type is Active - Set as current date.
addressLine1CustDetail.Addr.StreetAddr1The Addressine1 of the Customer Address.
cityNameCustDetail.Addr.CityThe City name of the Customer Address.
postalCodeTextCustDetail.Addr.PostalCodeThe Post Code of the Customer Address.
stateProvinceNameCustDetail.Addr.StateCodeThe State Province of the Customer Address.
countryNameCustDetail.Addr.CntryThe Country Name of the Customer Address.
contactPointTypeContactPointEmailThe ContactPointType - Set as "ContactPointEmail".
idnullThe ContactPoint type Id - Set as null.
activeFromDatenow()The date from which the ContactPoint Type is Active - Set as current date.
emailAddressCustDetail.EmailArray.EmailInfo.EmailAddrThe Email Address of the Customer.
contactPointTypeContactPointPhoneThe ContactPointType - Set as "ContactPointPhone".
contactPointTypenullThe ContactPoint type Id - Set as null.
activeFromDatenow()The date from which the ContactPoint Type is Active - Set as current date.
telephoneNumberCustDetail.PhoneArray.PhoneInfo.PhoneNumThe Phone Number of the Customer.
auditInfo.createdDatenow()Timestamp of when the customer was created - Set as Current Time.
auditInfo.createdBycreatedByUserLoginIdentifies the system or user which created the customer.
auditInfo.updatedDatelastUpdatedTxStampTimestamp of when the customer was last updated.
auditInfo.updatedBypayload.CustInqResponse.MsgRsHdr.jXchangeHdr.AuditUsrIdIdentifies the system or user which last updated the customer.
auditInfo.isDeletedfalseIndicates whether or not the customer has been soft-deleted - Set as false.

(back to top)

get-contactpoints-response

Retrieve Customer ContactPoints from SilverLake response mapping

Source: ./src/main/resources/dwl/get-contactpoints-response.dwl

Mapping Tables

The CustInq Operation of the CustomerService is used to retrieve the Customer ContactPoints from SilverLake Maps the CustInq response to CIM Customer format

CIMCustInqResponse.CustRecDescription
idCustIdThe Customer Identifier in SilverLake.
contactPointTypeContactPointAddressThe contactpoint type set as "ContactPointAddress".
idnullThe ContactPoint type Id - Set as null.
activeFromDatenow()The date from which the ContactPoint Type is Active - Set as current date.
addressLine1CustDetail.Addr.StreetAddr1The Addressine1 of the Customer Address.
cityNameCustDetail.Addr.CityThe City name of the Customer Address.
postalCodeTextCustDetail.Addr.PostalCodeThe Post Code of the Customer Address.
stateProvinceNameCustDetail.Addr.StateCodeThe State Province of the Customer Address.
countryNameCustDetail.Addr.CntryThe Country Name of the Customer Address.
contactPointTypeContactPointEmailThe ContactPointType - Set as "ContactPointEmail".
idnullThe ContactPoint type Id - Set as null.
activeFromDatenow()The date from which the ContactPoint Type is Active - Set as current date.
emailAddressCustDetail.EmailArray.EmailInfo.EmailAddrThe Email Address of the Customer.
contactPointTypeContactPointPhoneThe ContactPointType - Set as "ContactPointPhone".
contactPointTypenullThe ContactPoint type Id - Set as null.
activeFromDatenow()The date from which the ContactPoint Type is Active - Set as current date.
telephoneNumberCustDetail.PhoneArray.PhoneInfo.PhoneNumThe Phone Number of the Customer.

(back to top)

get-customers-response

Retrieve Customer from SilverLake response mapping

Source: ./src/main/resources/dwl/get-customers-response.dwl

Mapping Tables

The CustInq Operation of the CustomerService is used to retrieve the Customer information from SilverLake Maps the CustInq response to CIM Customer format

CIMCustInqResponse.CustRecDescription
idCustIdThe Customer Identifier in SilverLake.
partyRoleTypeCustomerSet as "Customer".
customerNumberx_TaxDetail.TaxDetail.TINInfo.TaxIdThe Customer Tax Identification Number in SilverLake.
customerStatus"ACTIVE"The Status of the Customer in SilverLake. Set as "Active".
party.idnullSet as null.
party.salutationCustDetail.PersonName.x_PersonName.SalNameThe Salutation of the Customer.
party.personNameFirstName ++ LastNameFullname of the Customer (concatenate FistName + LastName).
party.firstNameCustDetail.PersonName.FirstNameThe Firstname of the Customer.
party.lastNameCustDetail.PersonName.LastNameThe Lastname of the Customer.
party.birthDateCustDetail.BirthDtThe Customer birth date.
party.genderCustDetail.GenderThe gender of the Customer.
party.partyType"Individual"The party type set as "Individual".
contactPointTypeContactPointAddressThe contactpoint type set as "ContactPointAddress".
idnullThe ContactPoint type Id - Set as null.
activeFromDatenow()The date from which the ContactPoint Type is Active - Set as current date.
addressLine1CustDetail.Addr.StreetAddr1The Addressine1 of the Customer Address.
cityNameCustDetail.Addr.CityThe City name of the Customer Address.
postalCodeTextCustDetail.Addr.PostalCodeThe Post Code of the Customer Address.
stateProvinceNameCustDetail.Addr.StateCodeThe State Province of the Customer Address.
countryNameCustDetail.Addr.CntryThe Country Name of the Customer Address.
contactPointTypeContactPointEmailThe ContactPointType - Set as "ContactPointEmail".
idnullThe ContactPoint type Id - Set as null.
activeFromDatenow()The date from which the ContactPoint Type is Active - Set as current date.
emailAddressCustDetail.EmailArray.EmailInfo.EmailAddrThe Email Address of the Customer.
contactPointTypeContactPointPhoneThe ContactPointType - Set as "ContactPointPhone".
contactPointTypenullThe ContactPoint type Id - Set as null.
activeFromDatenow()The date from which the ContactPoint Type is Active - Set as current date.
telephoneNumberCustDetail.PhoneArray.PhoneInfo.PhoneNumThe Phone Number of the Customer.
auditInfo.createdDatenow()Timestamp of when the customer was created - Set as Current Time.
auditInfo.createdBycreatedByUserLoginIdentifies the system or user which created the customer.
auditInfo.updatedDatenow()Timestamp of when the customer was last updated.
auditInfo.updatedBypayload.CustInqResponse.MsgRsHdr.jXchangeHdr.AuditUsrIdIdentifies the system or user which last updated the customer.
auditInfo.isDeletedfalseIndicates whether or not the customer has been soft-deleted - Set as false.

(back to top)

get-customers-soap-request

SOAP Request mapping for retrieving a Customer from SilverLake

Source: ./src/main/resources/dwl/get-customers-soap-request.dwl

(back to top)

search-customer-by-emailaddress-soap-request

SOAP Request mapping for a searching a Customer by EmailAddress from SilverLake
The CustSrch Operation of CustomerService is used to look up a Customer

Source: ./src/main/resources/dwl/search-customer-by-emailaddress-soap-request.dwl

(back to top)

search-customer-by-individualname-soap-request

SOAP Request mapping for a searching a Customer by Individual from SilverLake
The CustSrch Operation of CustomerService is used to look up a Customer

Source: ./src/main/resources/dwl/search-customer-by-individualname-soap-request.dwl

(back to top)

update-customer-soap-request

Update Customer in SilverLake request mapping

Source: ./src/main/resources/dwl/update-customer-soap-request.dwl

Mapping Tables

The CustMod Operation of the CustomerService is used to update the Customer in SilverLake Maps CIM Customer to the request xml that is used to consume the CustMod Operation of the CustomerService The SOAP request includes the MsgRqHdr.jXchangeHdr and all the mappings in the header are specific to the jExchange Instance

CustMod RequestCIMDescription
TaxDetail.TaxDetail.TINInfo.TaxIdcustomerNumberThe Customer Tax Identification Number in SilverLake. This needs to be unique.
CustDetail.PersonName.FirstNameparty.firstNameThe Firstname of the Customer.
CustDetail.PersonName.LastNameparty.lastNameThe Lastname of the Customer.
CustDetail.BirthDtparty.birthDateThe Customer birth date.

(back to top)

upsert-contactpoints-soap-request

Create Customer ContactPoints in SilverLake request mapping

Source: ./src/main/resources/dwl/upsert-contactpoints-soap-request.dwl

(back to top)

SilverLakeTools

Source: ./src/main/resources/dwl/SilverLakeTools.dwl

Variables

var ISOStateCodesMap

This map includes the ISO 3166-2 Codes for different States in USA

var stateNamesMap

This map is obtained by swapping values and keys in the ISOStateCodesMap

Functions

fun getISOAlpha2CodeForStateName (stateName)

Maps State Name to ISO 3166-2 code. Default value is "TX"

return ISO 3166-2 State Code

fun getStateNameFromAlpha2Code (ISOCode)

Maps ISO 3166-2 code to State name. Default value is "Texas"

return State Name

(back to top)


Reviews

TypeTemplate
OrganizationMulesoft Inc.
Published by
MuleSoft Solutions
Published onNov 10, 2023
Asset overview

Asset versions for 2.0.x

Asset versions
VersionActions
2.0.0